#include "EndLeagueMenu.h"
#include "StringUtilities.h"
#include "PrintUtilities.h"
#include "User.h"
#include "MenuManager.h"

EndLeagueMenu::EndLeagueMenu(MenuManager* const i_menuManager)
	: Menu(i_menuManager)
{
}

void EndLeagueMenu::OnExit()
{
	ClearMessage();
}

void EndLeagueMenu::Draw() const
{
	STD::cout << Print::Title("END SEASON:");
	STD::cout << m_message << STD::endl;
	STD::cout << Print::Options("0) Return to previous menu'");
	STD::cout << "Selection: ";
}

bool EndLeagueMenu::Input(const STL::string& i_input)
{
	bool goodInput = true;

	int res = Utilities::StringToInt(i_input);

	if (res == 0)
		GetMM()->SetMenu(GetMM()->GetMainMenu());
	else
		goodInput = false;

	return goodInput;
}